//
//  User.h
//  极致荟
//
//  Created by mac on 14-4-17.
//  Copyright (c) 2014年 mac. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <MapKit/MapKit.h>
#import "JZHFocusType.h"

@interface User : NSObject<CLLocationManagerDelegate>
{
    id citydata;
    NSTimer *timer;
}
@property (nonatomic,strong)CLLocationManager *locationmanager;//用户地址信息
@property (nonatomic,strong) NSString *username;//用户账号
@property (nonatomic,strong) NSString *password;
@property (nonatomic,strong) NSString *confirmPassword;
@property (nonatomic,strong) NSDictionary *citydic;//所在城市 key:name , id
@property (nonatomic,assign) int userId;//用户ID
@property (nonatomic,assign) int vip;//是否VIP 0：不是  1：普通会员 2：高级会员
@property (nonatomic,assign) int sex;//性别 0=女 1=男
@property (nonatomic,copy) NSString *name;//用户昵称
@property (nonatomic,copy) NSString *phone;//手机
@property (nonatomic,copy) NSDate *userdate;//出生日期
@property (nonatomic,assign)int age;//年龄
@property (nonatomic,strong)NSDate *lastLoginTime;//最后登录时间
@property (nonatomic,copy) NSString *userHeadImage;//用户头像
@property (nonatomic,strong) NSDictionary *jobdic;//所在职位 key:name , id
@property (nonatomic,strong) NSDictionary *persdic;//所在行业 key:name , id
@property (nonatomic,strong) JZHFocusType *focusType;//用户定制的类型
@property (nonatomic,strong) NSString *pathHead;//图片文件首地址
@property (nonatomic,strong) NSString *isStr;//个性签名
@property (nonatomic,strong) NSDictionary *locationdic;//用户资料中的所在地，与当前所在地有区别 cityName:城市名 cid:城市ID quName:市区名 quid:市区ID

@property (nonatomic,strong) NSString *company;//公司名称
@property (nonatomic,strong) NSMutableArray *address;//送货地址
+ (User *)defuceUser;

///获取用户当前城市和城市列表，获取后保存在沙盒Documents下CityList.plist文件
- (void)userCity;

///返回最后登录时间字符串
- (NSString *)lastLoginTime:(NSDate *)date;
@end
